﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using ShakeIt_.ServiceReference2;

namespace ShakeIt_
{
    public partial class detailPage : PhoneApplicationPage
    {
        public detailPage()
        {
            InitializeComponent();
            _Activity acti = new _Activity();
            acti = Data.res_selected;
            title.Text += " " + acti.title;
            address.Text += " " + acti.address;
            type.Text += " " + acti.type;
            time.Text += " " + acti.beginTime.ToString() + "-" + acti.endTime.ToString();
            creater.Text += " " + acti.createUser.username;
            cellPhone.Text += " " + acti.createUser.cellPhone;
            detail.Text += "\n" + acti.detail;
        }

        private void ApplicationBarIconButton_Click(object sender, EventArgs e)
        {
            this.NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
        }
    }
}